@extends('Layout/layout')

@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("email").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('/email') }}"><p>邮件查看</p></a></li>

</ul>
</div>
@if (count($errors) > 0)
    <div style="color: red;background-color: #c1c1c1;border-color: #d6e9c6;float:left;margin-top:10px;margin-bottom:10px;width:100%;">
        <ul>
            @foreach ($errors->all() as $error)
                <li>{{ $error }}</li>
            @endforeach
        </ul>
    </div>
@endif
<div class="mian_b">

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
<tr>
<td width="5%" class="mian_b_bg_lm">&nbsp;</td>
<td colspan="3" class="mian_b_bg_lm">邮件查看</td>
</tr>


<tr>
<td>&nbsp;</td>
<td valign="top">收件人：</td>
<td>
{{ $res[0]['getName'] }}
<td>&nbsp;</td>
</tr>

<tr>
<td>&nbsp;</td>
<td valign="top">发件时间：</td>
<td>
{{ $res[0]['time'] }}
<td>&nbsp;</td>
</tr>

<tr>
<td>&nbsp;</td>
<td valign="top">标题：</td>
<td>
{{ $res[0]['title'] }}

<td>&nbsp;</td>
</tr>
@if($res[0]['file'])
	<tr>
	<td>&nbsp;</td>
	<td valign="top">附件：</td>
	<td>
	<a href="{{ url('/email'.$res[0]['file']) }}" style="color:blue;">{{ $res[0]['title'] }}</a>
	<td>&nbsp;</td>
	</tr>
@endif
<tr>
<td>&nbsp;</td>
<td valign="top">内容：</td>
<td>
{{ $res[0]['email'] }}

<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>


<td>&nbsp;</td>
</tr>

</table>

</div>
</div>
</body>

@endsection